package cn.easybuy.vo;

import org.springframework.util.DigestUtils;

/**
 * @author: WuShaoJun
 * @create: 2020-10-27 20:35
 **/
public class SecurityUtil {
    /**
     * md5加密
     *
     * @param value 要加密的值
     * @return md5加密后的值
     */
    public static String md5Hex(String value) {
        return DigestUtils.md5DigestAsHex(value.getBytes());
    }

    public static void main(String[] args) {
        System.out.println(SecurityUtil.md5Hex("123456"));
    }
}
